#ifndef SESSIONDETAILWIDGET_H
#define SESSIONDETAILWIDGET_H

#include <QDialog>
#include <QGridLayout>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QWidget>

#include "choosefrienddialog.h"
#include "model/data.h"

/////////////////////////////////////////////
/// 表示一个头像 +  一个名字组合控件
/////////////////////////////////////////////
class AvatarItem : public QWidget
{
    Q_OBJECT
  public:
    AvatarItem(const QIcon &avatar, const QString &name);

    QPushButton *getAvatar() { return _avatarBtn; }

  private:
    QPushButton *_avatarBtn;
    QLabel      *_nameLabel;
};

class SessionDetailWidget : public QDialog
{
    Q_OBJECT
  public:
    SessionDetailWidget(QWidget *parent, const model::UserInfo &userInfo);

    void clickDelteFriendBtn();

  private:
    QPushButton    *_deleteFriendBtn;
    model::UserInfo _userinfo;
};

#endif // SESSIONDETAILWIDGET_H
